import xadmin

from .models import CourseCategory


class CourseCategoryModelAdmin(object):
    """课程分类模型管理类"""
    pass


xadmin.site.register(CourseCategory, CourseCategoryModelAdmin)

from .models import Course


class CourseModelAdmin(object):
    """课程模型管理类"""
    pass


xadmin.site.register(Course, CourseModelAdmin)

from .models import Teacher


class TeacherModelAdmin(object):
    """老师模型管理类"""
    pass


xadmin.site.register(Teacher, TeacherModelAdmin)

from .models import CourseChapter


class CourseChapterModelAdmin(object):
    """课程章节模型管理类"""
    pass


xadmin.site.register(CourseChapter, CourseChapterModelAdmin)

from .models import CourseLesson


class CourseLessonModelAdmin(object):
    """课程课时模型管理类"""
    pass


xadmin.site.register(CourseLesson, CourseLessonModelAdmin)

# 课程与有效期模型管理类
from .models import CourseDiscountType


class CourseExpireModelAdmin(object):
    pass


xadmin.site.register(CourseDiscountType, CourseExpireModelAdmin)


# 价格优惠类型
from .models import CourseDiscount


class PriceDiscountTypeModelAdmin(object):
    pass


xadmin.site.register(CourseDiscount, PriceDiscountTypeModelAdmin)


# 价格优惠公式
from .models import Activity


class PriceDiscountModelAdmin(object):
    pass


xadmin.site.register(Activity, PriceDiscountModelAdmin)


# 商品优惠和活动的关系
from .models import CoursePriceDiscount


class CoursePriceDiscountModelAdmin(object):
    pass


xadmin.site.register(CoursePriceDiscount, CoursePriceDiscountModelAdmin)


# 商品有效期模型
from .models import CourseExpire


class CourseExpireModelAdmin(object):
    pass


xadmin.site.register(CourseExpire, CourseExpireModelAdmin)
